"""Module for ros launch."""
from launch import LaunchDescription
from launch.substitutions import PathJoinSubstitution
from launch_ros.actions import Node
from launch_ros.substitutions import FindPackageShare


def generate_launch_description():
    """Launch the param log node."""
    package_name = "param_log_01"
    package_path = FindPackageShare(package_name).find(package_name)
    print("package path******:",package_path)
    str1="arg-str1"
    str2="argc-str2"
    param_node=Node(
        package=package_name,
        executable="param_log_arg_par",
        parameters=[{"log_level":100},
                    {"test_para":"test parameter"},
                    {"yaml_file_path":package_path+"/config/test.yaml"},
                   ],
        arguments=[str1,str2],
        output="screen",
    )

    return LaunchDescription([param_node])